<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="generator" content="ApiGen 2.8.0" />

	<title>Class tools_convert | pwe-project</title>

	<script type="text/javascript" src="resources/combined.js?682347548"></script>
	<script type="text/javascript" src="elementlist.js?1761807718"></script>
	<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />

</head>

<body>
<div id="left">
	<div id="menu">
		<a href="index.html" title="Overview"><span>Overview</span></a>


		<div id="groups">
			<h3>Packages</h3>
			<ul>
				<li><a href="package-API.html">API</a>
						</li>
				<li><a href="package-None.html">None</a>
						</li>
				<li><a href="package-PHP.html">PHP</a>
						</li>
				<li class="active"><a href="package-PWE.html">PWE<span></span></a>
						<ul>
				<li><a href="package-PWE.bdd.html">bdd</a>
						</li>
				<li><a href="package-PWE.controler.html">controler</a>
						</li>
				<li><a href="package-PWE.modele.html">modele<span></span></a>
						<ul>
				<li><a href="package-PWE.modele.menu.html">menu</a>
						</li>
							</ul></li>
				<li class="active"><a href="package-PWE.tools.html">tools</a>
						</li>
							</ul></li>
			</ul>
		</div>

		<hr />


		<div id="elements">
			<h3>Classes</h3>
			<ul>
				<li><a href="class-encoding.html">encoding</a></li>
				<li class="active"><a href="class-tools_convert.html">tools_convert</a></li>
				<li><a href="class-tools_verif.html">tools_verif</a></li>
			</ul>





		</div>
	</div>
</div>

<div id="splitter"></div>

<div id="right">
<div id="rightInner">
	<form id="search">
		<input type="hidden" name="cx" value="" />
		<input type="hidden" name="ie" value="UTF-8" />
		<input type="text" name="q" class="text" />
		<input type="submit" value="Search" />
	</form>

	<div id="navigation">
		<ul>
			<li>
				<a href="index.html" title="Overview"><span>Overview</span></a>
			</li>
			<li>
				<a href="package-PWE.tools.html" title="Summary of PWE\tools"><span>Package</span></a>
			</li>
			<li class="active">
<span>Class</span>			</li>
		</ul>
		<ul>
			<li>
				<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
			</li>
			<li>
				<a href="deprecated.html" title="List of deprecated elements"><span>Deprecated</span></a>
			</li>
			<li>
				<a href="todo.html" title="Todo list"><span>Todo</span></a>
			</li>
		</ul>
		<ul>
			<li>
				<a href="pwe-project-api-documentation.zip" title="Download documentation as ZIP archive"><span>Download</span></a>
			</li>
		</ul>
	</div>

<div id="content" class="class">
	<h1>Class tools_convert</h1>











	<div class="info">
		
		
		
		<b>Package:</b> <a href="package-PWE.html">PWE</a>\<a href="package-PWE.tools.html">tools</a><br />

				<b>Author:</b>
				Gmax &lt;<a
href="mailto:gmaxfr78&#64;gmail.com">gmaxfr78&#64;<!---->gmail.com</a>&gt;
outils de convertion des chaines de caracteres<br />
		<b>Located at</b> <a href="source-class-tools_convert.html#2-105" title="Go to source code">engine/class/tools/convert.class.php</a><br />
	</div>



	<table class="summary" id="methods">
	<caption>Methods summary</caption>
	<tr data-order="slug" id="_slug">

		<td class="attributes"><code>
			 public static
			string
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_slug">#</a>
		<code><a href="source-class-tools_convert.html#8-21" title="Go to source code">slug</a>( <span>string <var>$str</var></span> )</code>

		<div class="description short">
			
<p>converti une chaine en supprimant les carateres spéciaux</p>

		</div>

		<div class="description detailed hidden">
			
<p>converti une chaine en supprimant les carateres spéciaux</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$str</var></dt>
					<dd><code>string</code><br>$str</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>string</code><br />
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="date" id="_date">

		<td class="attributes"><code>
			 public static
			string
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_date">#</a>
		<code><a href="source-class-tools_convert.html#22-37" title="Go to source code">date</a>( <span>string <var>$str</var></span>, <span>boolean <var>$letterMonth</var> = <span class="php-keyword1">false</span></span> )</code>

		<div class="description short">
			
<p>converti un datetime en date lisible</p>

		</div>

		<div class="description detailed hidden">
			
<p>converti un datetime en date lisible</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$str</var></dt>
					<dd><code>string</code><br>$str</dd>
					<dt><var>$letterMonth</var></dt>
					<dd><code>boolean</code><br>$letterMonth : option pour le mois en toute lettre</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>string</code><br />
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="sqlDate" id="_sqlDate">

		<td class="attributes"><code>
			 public static
			string
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_sqlDate">#</a>
		<code><a href="source-class-tools_convert.html#39-48" title="Go to source code">sqlDate</a>( <span>string <var>$str</var></span>, <span>string <var>$sep</var> = <span class="php-quote">'/'</span></span> )</code>

		<div class="description short">
			
<p>converti une chaine en date compatible sql</p>

		</div>

		<div class="description detailed hidden">
			
<p>converti une chaine en date compatible sql</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$str</var></dt>
					<dd><code>string</code><br>$str</dd>
					<dt><var>$sep</var></dt>
					<dd><code>string</code><br>$sep</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>string</code><br />
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="date_iso8601" id="_date_iso8601">

		<td class="attributes"><code>
			 public static
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_date_iso8601">#</a>
		<code><a href="source-class-tools_convert.html#50-53" title="Go to source code">date_iso8601</a>( <span>mixed <var>$date</var></span> )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			







		</div>
		</div></td>
	</tr>
	<tr data-order="cleanString" id="_cleanString">

		<td class="attributes"><code>
			 public static
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_cleanString">#</a>
		<code><a href="source-class-tools_convert.html#56-58" title="Go to source code">cleanString</a>( <span>mixed <var>$str</var></span> )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			







		</div>
		</div></td>
	</tr>
	<tr data-order="unix_timestamp" id="_unix_timestamp">

		<td class="attributes"><code>
			 public static
			integer
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_unix_timestamp">#</a>
		<code><a href="source-class-tools_convert.html#59-76" title="Go to source code">unix_timestamp</a>( <span>string <var>$date</var></span>, <span>string <var>$addDate</var> = <span class="php-quote">'0-0-0-0-0-0'</span></span> )</code>

		<div class="description short">
			
<p>renvoi le timestamp d'une date sql avec ajout selon la valeur de $addDate
Y-m-d-H-i-s</p>

		</div>

		<div class="description detailed hidden">
			
<p>renvoi le timestamp d'une date sql avec ajout selon la valeur de $addDate
Y-m-d-H-i-s</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$date</var></dt>
					<dd><code>string</code><br>$date format sql datetime</dd>
					<dt><var>$addDate</var></dt>
					<dd><code>string</code><br>$addDate</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>integer</code><br />
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="getMois" id="_getMois">

		<td class="attributes"><code>
			 public static
			string
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getMois">#</a>
		<code><a href="source-class-tools_convert.html#77-86" title="Go to source code">getMois</a>( <span>integer <var>$mois</var></span> )</code>

		<div class="description short">
			
<p>retourne le mois en toute lettre en fonction de $mois [1-12]</p>

		</div>

		<div class="description detailed hidden">
			
<p>retourne le mois en toute lettre en fonction de $mois [1-12]</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$mois</var></dt>
					<dd><code>integer</code><br>$mois</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>string</code><br />
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="getNumMois" id="_getNumMois">

		<td class="attributes"><code>
			 public static
			string
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getNumMois">#</a>
		<code><a href="source-class-tools_convert.html#87-95" title="Go to source code">getNumMois</a>( <span>string <var>$mois</var></span> )</code>

		<div class="description short">
			
<p>renvoi le numéro de moi</p>

		</div>

		<div class="description detailed hidden">
			
<p>renvoi le numéro de moi</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$mois</var></dt>
					<dd><code>string</code><br>$mois</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>string</code><br />
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="getJour" id="_getJour">

		<td class="attributes"><code>
			 public static
			string
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getJour">#</a>
		<code><a href="source-class-tools_convert.html#96-104" title="Go to source code">getJour</a>( <span>string <var>$jour</var></span> )</code>

		<div class="description short">
			
<p>retourne le jour en français depuis l'abreviation anglaise date('D')</p>

		</div>

		<div class="description detailed hidden">
			
<p>retourne le jour en français depuis l'abreviation anglaise date('D')</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$jour</var></dt>
					<dd><code>string</code><br>$jour</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>string</code><br />
				</div>




		</div>
		</div></td>
	</tr>
	</table>


















</div>

	<div id="footer">
		pwe-project API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
	</div>
</div>
</div>
</body>
</html>
